home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / filepicker / nsIFileView.h
C/C++ Source or Header  |  2006-05-08  |  7KB  |  201 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFileView.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFileView_h__
  6. #define __gen_nsIFileView_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIArray; /* forward declaration */
  18.  
  19. class nsIFile; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIFileView */
  23. #define NS_IFILEVIEW_IID_STR "60b320d2-1dd2-11b2-bd73-dc3575f78ddd"
  24.  
  25. #define NS_IFILEVIEW_IID \
  26.   {0x60b320d2, 0x1dd2, 0x11b2, \
  27.     { 0xbd, 0x73, 0xdc, 0x35, 0x75, 0xf7, 0x8d, 0xdd }}
  28.  
  29. class NS_NO_VTABLE nsIFileView : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFILEVIEW_IID)
  33.  
  34.   enum { sortName = 0 };
  35.  
  36.   enum { sortSize = 1 };
  37.  
  38.   enum { sortDate = 2 };
  39.  
  40.   /* attribute boolean showHiddenFiles; */
  41.   NS_IMETHOD GetShowHiddenFiles(PRBool *aShowHiddenFiles) = 0;
  42.   NS_IMETHOD SetShowHiddenFiles(PRBool aShowHiddenFiles) = 0;
  43.  
  44.   /* attribute boolean showOnlyDirectories; */
  45.   NS_IMETHOD GetShowOnlyDirectories(PRBool *aShowOnlyDirectories) = 0;
  46.   NS_IMETHOD SetShowOnlyDirectories(PRBool aShowOnlyDirectories) = 0;
  47.  
  48.   /* readonly attribute short sortType; */
  49.   NS_IMETHOD GetSortType(PRInt16 *aSortType) = 0;
  50.  
  51.   /* readonly attribute boolean reverseSort; */
  52.   NS_IMETHOD GetReverseSort(PRBool *aReverseSort) = 0;
  53.  
  54.   /* void sort (in short sortType, in boolean reverseSort); */
  55.   NS_IMETHOD Sort(PRInt16 sortType, PRBool reverseSort) = 0;
  56.  
  57.   /* void setDirectory (in nsIFile directory); */
  58.   NS_IMETHOD SetDirectory(nsIFile *directory) = 0;
  59.  
  60.   /* void setFilter (in wstring filterString); */
  61.   NS_IMETHOD SetFilter(const PRUnichar *filterString) = 0;
  62.  
  63.   /* readonly attribute nsIArray selectedFiles; */
  64.   NS_IMETHOD GetSelectedFiles(nsIArray * *aSelectedFiles) = 0;
  65.  
  66. };
  67.  
  68. /* Use this macro when declaring classes that implement this interface. */
  69. #define NS_DECL_NSIFILEVIEW \
  70.   NS_IMETHOD GetShowHiddenFiles(PRBool *aShowHiddenFiles); \
  71.   NS_IMETHOD SetShowHiddenFiles(PRBool aShowHiddenFiles); \
  72.   NS_IMETHOD GetShowOnlyDirectories(PRBool *aShowOnlyDirectories); \
  73.   NS_IMETHOD SetShowOnlyDirectories(PRBool aShowOnlyDirectories); \
  74.   NS_IMETHOD GetSortType(PRInt16 *aSortType); \
  75.   NS_IMETHOD GetReverseSort(PRBool *aReverseSort); \
  76.   NS_IMETHOD Sort(PRInt16 sortType, PRBool reverseSort); \
  77.   NS_IMETHOD SetDirectory(nsIFile *directory); \
  78.   NS_IMETHOD SetFilter(const PRUnichar *filterString); \
  79.   NS_IMETHOD GetSelectedFiles(nsIArray * *aSelectedFiles); 
  80.  
  81. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  82. #define NS_FORWARD_NSIFILEVIEW(_to) \
  83.   NS_IMETHOD GetShowHiddenFiles(PRBool *aShowHiddenFiles) { return _to GetShowHiddenFiles(aShowHiddenFiles); } \
  84.   NS_IMETHOD SetShowHiddenFiles(PRBool aShowHiddenFiles) { return _to SetShowHiddenFiles(aShowHiddenFiles); } \
  85.   NS_IMETHOD GetShowOnlyDirectories(PRBool *aShowOnlyDirectories) { return _to GetShowOnlyDirectories(aShowOnlyDirectories); } \
  86.   NS_IMETHOD SetShowOnlyDirectories(PRBool aShowOnlyDirectories) { return _to SetShowOnlyDirectories(aShowOnlyDirectories); } \
  87.   NS_IMETHOD GetSortType(PRInt16 *aSortType) { return _to GetSortType(aSortType); } \
  88.   NS_IMETHOD GetReverseSort(PRBool *aReverseSort) { return _to GetReverseSort(aReverseSort); } \
  89.   NS_IMETHOD Sort(PRInt16 sortType, PRBool reverseSort) { return _to Sort(sortType, reverseSort); } \
  90.   NS_IMETHOD SetDirectory(nsIFile *directory) { return _to SetDirectory(directory); } \
  91.   NS_IMETHOD SetFilter(const PRUnichar *filterString) { return _to SetFilter(filterString); } \
  92.   NS_IMETHOD GetSelectedFiles(nsIArray * *aSelectedFiles) { return _to GetSelectedFiles(aSelectedFiles); } 
  93.  
  94. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  95. #define NS_FORWARD_SAFE_NSIFILEVIEW(_to) \
  96.   NS_IMETHOD GetShowHiddenFiles(PRBool *aShowHiddenFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowHiddenFiles(aShowHiddenFiles); } \
  97.   NS_IMETHOD SetShowHiddenFiles(PRBool aShowHiddenFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowHiddenFiles(aShowHiddenFiles); } \
  98.   NS_IMETHOD GetShowOnlyDirectories(PRBool *aShowOnlyDirectories) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowOnlyDirectories(aShowOnlyDirectories); } \
  99.   NS_IMETHOD SetShowOnlyDirectories(PRBool aShowOnlyDirectories) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowOnlyDirectories(aShowOnlyDirectories); } \
  100.   NS_IMETHOD GetSortType(PRInt16 *aSortType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortType(aSortType); } \
  101.   NS_IMETHOD GetReverseSort(PRBool *aReverseSort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReverseSort(aReverseSort); } \
  102.   NS_IMETHOD Sort(PRInt16 sortType, PRBool reverseSort) { return !_to ? NS_ERROR_NULL_POINTER : _to->Sort(sortType, reverseSort); } \
  103.   NS_IMETHOD SetDirectory(nsIFile *directory) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirectory(directory); } \
  104.   NS_IMETHOD SetFilter(const PRUnichar *filterString) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilter(filterString); } \
  105.   NS_IMETHOD GetSelectedFiles(nsIArray * *aSelectedFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedFiles(aSelectedFiles); } 
  106.  
  107. #if 0
  108. /* Use the code below as a template for the implementation class for this interface. */
  109.  
  110. /* Header file */
  111. class nsFileView : public nsIFileView
  112. {
  113. public:
  114.   NS_DECL_ISUPPORTS
  115.   NS_DECL_NSIFILEVIEW
  116.  
  117.   nsFileView();
  118.  
  119. private:
  120.   ~nsFileView();
  121.  
  122. protected:
  123.   /* additional members */
  124. };
  125.  
  126. /* Implementation file */
  127. NS_IMPL_ISUPPORTS1(nsFileView, nsIFileView)
  128.  
  129. nsFileView::nsFileView()
  130. {
  131.   /* member initializers and constructor code */
  132. }
  133.  
  134. nsFileView::~nsFileView()
  135. {
  136.   /* destructor code */
  137. }
  138.  
  139. /* attribute boolean showHiddenFiles; */
  140. NS_IMETHODIMP nsFileView::GetShowHiddenFiles(PRBool *aShowHiddenFiles)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144. NS_IMETHODIMP nsFileView::SetShowHiddenFiles(PRBool aShowHiddenFiles)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* attribute boolean showOnlyDirectories; */
  150. NS_IMETHODIMP nsFileView::GetShowOnlyDirectories(PRBool *aShowOnlyDirectories)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154. NS_IMETHODIMP nsFileView::SetShowOnlyDirectories(PRBool aShowOnlyDirectories)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* readonly attribute short sortType; */
  160. NS_IMETHODIMP nsFileView::GetSortType(PRInt16 *aSortType)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* readonly attribute boolean reverseSort; */
  166. NS_IMETHODIMP nsFileView::GetReverseSort(PRBool *aReverseSort)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* void sort (in short sortType, in boolean reverseSort); */
  172. NS_IMETHODIMP nsFileView::Sort(PRInt16 sortType, PRBool reverseSort)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176.  
  177. /* void setDirectory (in nsIFile directory); */
  178. NS_IMETHODIMP nsFileView::SetDirectory(nsIFile *directory)
  179. {
  180.     return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182.  
  183. /* void setFilter (in wstring filterString); */
  184. NS_IMETHODIMP nsFileView::SetFilter(const PRUnichar *filterString)
  185. {
  186.     return NS_ERROR_NOT_IMPLEMENTED;
  187. }
  188.  
  189. /* readonly attribute nsIArray selectedFiles; */
  190. NS_IMETHODIMP nsFileView::GetSelectedFiles(nsIArray * *aSelectedFiles)
  191. {
  192.     return NS_ERROR_NOT_IMPLEMENTED;
  193. }
  194.  
  195. /* End of implementation class template. */
  196. #endif
  197.  
  198. #define NS_FILEVIEW_CONTRACTID "@mozilla.org/filepicker/fileview;1"
  199.  
  200. #endif /* __gen_nsIFileView_h__ */
  201.